import request from '@/utils/request'
const apix = 'dev-api'
// api地址
const api = {
	recognition_list: apix + '/apm/recognition/list',
	recognition_export: apix + '/apm/recognition/export',
	apm_recognition: apix + '/apm/recognition',
	apm_recognitionId: apix + '/apm/recognition/',
}

//查询人才资讯
export function recognitionList(obj) {
	return request.get(api.recognition_list, {
		...obj
	})
}
//导出人才资讯
export function recognitionExport(obj) {
	return request.post(api.recognition_export, {
		...obj
	})
}
//获取人才资讯资讯与信息
export function recognitionId(id) {
	return request.get(api.apm_recognitionId + id)
}
//新增资讯
export function addrecognition(obj) {
	return request.post(api.apm_recognition, {
		...obj
	})
}
//修改资讯
export function putrecognition(obj) {
	return request.put(api.apm_recognition, {
		...obj
	})
}
//删除资讯
export function delrecognition(id) {
	return request.delete(api.apm_recognitionId + id)
}